package types

// 新增请求参数
type BannerAddRequest struct {
	Title    string `json:"title,optional" form:"title,optional"`
	ImageUrl string `json:"image_url,optional" form:"image_url,optional"`
	Type     uint8  `json:"type,optional" form:"type,optional"`
	Link     string `json:"link,optional" form:"link,optional"`
	Sort     uint8  `json:"sort,optional" form:"sort,optional"`
	Note     string `json:"note,optional" form:"note,optional"`
}

// 删除请求参数
type BannerDeleteRequest struct {
	Ids string `form:"ids,optional"`
}

// 编辑请求参数
type BannerEditRequest struct {
	Id       uint16 `json:"id,optional" form:"id,optional"`
	Title    string `json:"title,optional" form:"title,optional"`
	ImageUrl string `json:"image_url,optional" form:"image_url,optional"`
	Type     uint8  `json:"type,optional" form:"type,optional"`
	Link     string `json:"link,optional" form:"link,optional"`
	Sort     uint8  `json:"sort,optional" form:"sort,optional"`
	Note     string `json:"note,optional" form:"note,optional"`
}

// 编辑状态请求参数
type BannerEditStatusRequest struct {
	Ids    string `json:"ids,optional" form:"ids,optional"`
	Status int8   `json:"status,optional" form:"status,optional"`
}

// 查询请求参数
type BannerQueryRequest struct {
	Id              uint16 `json:"id,optional" form:"id,optional"`
	Ids             string `json:"ids,optional" form:"ids,optional"`
	Title           string `json:"title,optional" form:"title,optional"`
	Type            string `json:"type,optional" form:"type,optional"`
	Status          string `json:"status,optional" form:"status,optional"`
	StartCreateTime string `json:"start_create_time,optional" form:"start_create_time,optional"`
	EndCreateTime   string `json:"end_create_time,optional" form:"end_create_time,optional"`
	SortField       string `json:"sort_field,optional" form:"sort_field,optional"`
	SortType        string `json:"sort_type,optional" form:"sort_type,optional"`
	Page            uint8  `json:"page,optional" form:"page,optional"`
	PageSize        int8   `json:"page_size,optional" form:"page_size,optional"`
}
